package com.brillilab.common.constant;

import lombok.Getter;
/**
 * 响应枚举值
 * @author lj
 *
 */
@Getter
public enum ResultEnum {
	
	SUCCESS(200,"成功"),
	FAILURE(1000,"失败"),
	
	USER_NOT_LOGIN(403,"用户未登录"),
	USER_NOT_POWER(404,"用户未授权"),
	USER_EXIST(405,"用户已存在"),
	USER_NOT_EXIST(406,"用户不存在"),
    LOCK_NOT_RELEASE(407,"锁未释放"),


    REQUEST_PARAM_ERROR(1001,"请求参数错误"),
    REQUEST_PARAM_LACK(1002,"请求参数缺失"),
    TIME_FORMAT_ERROR(1003,"时间格式错误"),
    DATA_EXIST_CANT_DELETE(1004,"存在关联数据，不能删除"),
    DATA_ALREADY_EXIST(1005,"已经存在数据"),
    REFRESH_USER(1006,"用户信息已改变"),
    REFRESH_USER_DIRECT_TO_CENTER(1008,"用户信息已改变跳转到用户中心"),
    QUARTZ_EXCEPTION(1009,"定时任务异常"),
    DATA_NOT_EXIST(1100,"数据不存在"),
    USER_EXIST_OTHER_LAB(1101,"此手机号已注册，是否加入当前实验室"),
    USER_EXIST_CURRENT_LAB(1102,"此用户已在当前实验室"),
    DATA_IN_USING(1103,"数据已被使用"),
    CURRENT_PI_EXIST_LAB(1104,"此PI名下已有实验室，是否申请加入此实验室，若不加入请更换PI的手机号码"),
    CURRENT_PI_LAB_AUDITING(1105,"此手机号被申请的实验室正在审核中"),
    VERIFY_CODE_EXPIRE(1106,"验证码链接失效"),
	SYSTEM_EXCEPTION(9999,"系统异常"),

	NO_MORE_DEVICE(1007,"无可用一体机"),
	SEND_SMS_FREQUENT(1201,"发送短信过于频繁"),

	SPACE_OCCUPIED(2000,"位置已被使用"),
    LAB_NO_PI_OR_LAB_AUDIT_WAIT_PC(2001,"实验室无PI"),
    LAB_AUDIT_FAIL(2002,"实验室审核未通过"),
    LAB_AUDIT_WAIT_APP(2003,"实验室待审核"),

    FIRST_LOGIN_NO_MEMBERS(2004,"PI第一次登录无成员"),
    FIRST_LOGIN_NO_TOPIC(2005,"成员第一次登录无课题"),

    NO_LAB(2006,"无实验室"),
    LAB_EXPIRE(2007,"实验室到期"),

    USER_INVITE_AUDIT_NOT_PASS(2008,"成员申请未通过")
    ;
    /**
     * 响应代码
     */
    private Integer code;
    
    /**
     * 响应信息
     */
    private String message;
    
    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    
}
